package com.example.demo.pojo.properties;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Getter
@Setter
@ToString
@Component
@ConfigurationProperties(prefix = "aliyun.open-search")
public class AliyunOpenSearchProperties {
    private String accessKeyId;
    private String accessKeySecret;
    private String appName;
    private String host;

    public AliyunOpenSearchProperties() {
    }

    public AliyunOpenSearchProperties(String accessKeyId, String accessKeySecret, String appName, String host) {
        this.accessKeyId = accessKeyId;
        this.accessKeySecret = accessKeySecret;
        this.appName = appName;
        this.host = host;
    }
}
